package com.ruoyi.sys.vehile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.vehile.mapper.TbParkingMapper;
import com.ruoyi.sys.vehile.domain.TbParking;
import com.ruoyi.sys.vehile.service.ITbParkingService;

/**
 * 停车记录
Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class TbParkingServiceImpl implements ITbParkingService
{
    @Autowired
    private TbParkingMapper tbParkingMapper;

    /**
     * 查询停车记录

     *
     * @param pId 停车记录
主键
     * @return 停车记录

     */
    @Override
    public TbParking selectTbParkingByPId(Long pId)
    {
        return tbParkingMapper.selectTbParkingByPId(pId);
    }

    /**
     * 查询停车记录
列表
     *
     * @param tbParking 停车记录

     * @return 停车记录

     */
    @Override
    public List<TbParking> selectTbParkingList(TbParking tbParking)
    {
        return tbParkingMapper.selectTbParkingList(tbParking);
    }

    /**
     * 新增停车记录

     *
     * @param tbParking 停车记录

     * @return 结果
     */
    @Override
    public int insertTbParking(TbParking tbParking)
    {
        return tbParkingMapper.insertTbParking(tbParking);
    }

    /**
     * 修改停车记录

     *
     * @param tbParking 停车记录

     * @return 结果
     */
    @Override
    public int updateTbParking(TbParking tbParking)
    {
        return tbParkingMapper.updateTbParking(tbParking);
    }

    /**
     * 批量删除停车记录

     *
     * @param pIds 需要删除的停车记录
主键
     * @return 结果
     */
    @Override
    public int deleteTbParkingByPIds(Long[] pIds)
    {
        return tbParkingMapper.deleteTbParkingByPIds(pIds);
    }

    /**
     * 删除停车记录
信息
     *
     * @param pId 停车记录
主键
     * @return 结果
     */
    @Override
    public int deleteTbParkingByPId(Long pId)
    {
        return tbParkingMapper.deleteTbParkingByPId(pId);
    }
}
